<template>
  <div id="app">
    <!--
      一级路由出口，keep-live只对这个出口存在
     -->
    <keep-alive :include="cachePages">
     <router-view />
    </keep-alive>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'app',
  computed: {
    ...mapState(['cachePages'])
  }
}
</script>

<style lang="less"></style>
